package com.atguigu.guli.edu.controller;



import com.atguigu.guli.service.base.result.R;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/user")
public class EduControllerLongin {


    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    @GetMapping("info")
    public R Info(){
        return R.ok()
                .data("roles","[admin]")
                .data("name","admin")
                .data("avatar","https://oss.aliyuncs.com/aliyun_id_photo_bucket/default_handsome.jpg");
    }

}
